//
//  ImagePicker.m
//  NetImager
//
//  Created by li hongliang on 10-9-6.
//  Copyright 2010 sweet-home. All rights reserved.
//

#import "ImagePickerController.h"
#import "ZoomInImageView.h"
#import "ImageSenderController.h"


@implementation ImagePickerController

#define SOURCETYPE UIImagePickerControllerSourceTypePhotoLibrary
#define DOCSFOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]

- (id) init
{
	if(self = [super init]) {
		if([UIImagePickerController isSourceTypeAvailable:SOURCETYPE])
			self.sourceType = SOURCETYPE;
	}
	return  self;
}


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
//- (void)viewDidLoad {
//    [super viewDidLoad];
//}


//- (void)viewDidUnload {
//    [super viewDidUnload];	
//}

// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}


- (void)dealloc {
    [super dealloc];
}


@end
